package com.woniu.apartment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 公寓规则对象 tb_rules
 *
 * @author yy
 * @date 2023-04-03
 */
@ApiModel(value = "Rules", description = "公寓规则")
public class Rules implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 公寓规定主键 */
    @ApiModelProperty("公寓规定主键")
    private Long id;

    /** 公寓居住规定 */
    @Excel(name = "公寓居住规定")
    @ApiModelProperty("公寓居住规定")
    private String rule;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRule(String rule)
    {
        this.rule = rule;
    }

    public String getRule()
    {
        return rule;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rule", getRule())
            .toString();
    }
}
